get /cloud/gcp/subnets

List GCP Subnetworks (getGcpSubnets)

Lists the GCP Subnetworks.

Consumes

This API call consumes the following media types via the Content-Type request header:

  • application/json

Query parameters

credentialsName (required)

Query Parameter — Cloud Credentials Name

regionName (required)

Query Parameter — Region Name

networkId (required)

Query Parameter — Full Network Id

Return type

array[Subnet]

availabilityZone (optional)

String Availability Zone

cidrBlock (optional)

String VNet CIDR Block. Main block of IP addresses for the VNet. The selected block must not overlap with address blocks used on-prem. Private and public subnets will be carved out of this block. Azure supports small CIDR blocks sizes of /29 and large CDR block sizes of /8.

id (optional)

String

 

Example data

Content-Type: application/json

[

{

"cidrBlock" : "10.10.1.0/24",

"id" : "subnet-123456",

"availabilityZone" : "eu-west-1c"

}

]

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

  • application/json

Responses

200

OK

Default

Error ErrorInfo

errorCode (optional)

String

url(optional)

String

message (optional)

String